package svc

import (
	"paper-pro/app/assistant/api/internal/config"
	assistantclient "paper-pro/pkg/rpc/assistant"

	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config       config.Config
	AssistantRpc assistantclient.Assistant
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:       c,
		AssistantRpc: assistantclient.NewAssistant(zrpc.MustNewClient(c.AssistantRpcConf)),
	}
}
